<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 管理系统大布局 - Layui</title>
    <link type="text/css" href="${pageContext.request.contextPath}/shop/admin/css/Admin.css" rel="stylesheet"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/css/layui.min.css">
</head>

<body>
<div class="layui-layout layui-layout-admin">
    <%@include file="../header-side.jsp"%>
    <script>
        if((window.location.pathname).indexOf('order')>=0 || (window.location.pathname).indexOf('Order')>=0){
            document.getElementsByClassName('order')[0].className+='  layui-this '
        }
    </script>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <span class="layui-breadcrumb">
							<a href="${pageContext.request.contextPath}/shop/client">首页</a>
							<a href="order">订单管理</a>
							<a><cite>编辑</cite></a>
						</span>
        <hr>
        <div class="layui-panel" style="width: 500px;margin: 100px auto;">
            <div class="layui-card-header">订单信息</div>
            <div style="padding: 30px;">
                <form class="layui-form" action="<c:url value="/shop/modifyOrder2"/>">
                    <div class="layui-form-item">
                        <label class="layui-form-label">ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="id" class="layui-input" readonly="readonly" value="${order.id}"
                                   placeholder="无需填写">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">收件人</label>
                        <div class="layui-input-block">
                            <input type="text" name="receiverName" class="layui-input" lay-verify="required" value="${order.receiverName}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">收件地址</label>
                        <div class="layui-input-block">
                            <textarea name="receiverAddress" class="layui-textarea" lay-verify="required">${order.receiverAddress}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">收件电话</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="receiverPhone" id="n_time"
                                   value="${order.receiverPhone}" lay-verify="phone">
                        </div>
                    </div>
                    <input type="text" name="paystate" value="${order.paystate}" style="display: none">
                    <input type="text"  name="user_id" value="${order.user_id}" style="display: none">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn  layui-btn-normal" lay-submit >立即提交</button>
                            <button type="button" class="layui-btn  layui-btn-primary" onclick="window.location.href='order'">返回列表</button>
                        </div>
                    </div>
                 </form>
            </div>
        </div>
    </div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.min.js"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {
        var element = layui.element
            , layer = layui.layer
            , util = layui.util
            , $ = layui.$;
    });
</script>
</body>

</html>